#pragma once
#include "DataDef.h"
#include "ErrorHandler.h"
#include <vector>
#include <sstream>

using namespace std;

class ModelMesh
{
public:
	ModelMesh(LPD3DXMESH mesh, D3DXMATRIX world, LPCWSTR textureName, LPCWSTR specTextureName = NULL);
	~ModelMesh(void);

	D3DXMATRIX getWorld();

	LPD3DXMESH getMesh();

	void setWorld(D3DXMATRIX world);

	LPCWSTR getTextureName();

	LPCWSTR getSpecTextureName();

	static LPD3DXMESH loadMesh(const LPDIRECT3DDEVICE9 p_dx_Device, const LPCWSTR fileName);
private:
	D3DXMATRIX world;
	LPCWSTR textureName;
	LPCWSTR specTextureName;
	LPD3DXMESH mesh;
};
